charIndex
Type
property
Summary
The character offset in the field of the start of the chunk.
Syntax
get the charIndex of <fieldChunk>
Description
The charIndex of a field chunk returns the character offset in the field of the start of the chunk.
Examples
-- Example: 2 lines of text in a field
-- Hello World
-- Goodbye World
the charIndex of line 2 of field 1
-- 13 (line 1 has 11 chars + a return char making first char of line 2 = 13)
the charIndex of word 2 of field 1
-- 7
Related
property: lineIndex
Compatibility and Support
Introduced
LiveCode 5.5
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile